NIELIT O Level Exam

Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5)?

Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5)?

मान लीजिए कि list1 [3, 4, 5, 20, 5] है, list1.index (5) क्या है?

A. 0

B. 1

C. 4

D. 2




Correct Answer is :

D. 2



Explanation
Index method return the index of search element which first occurs.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad